import request from '@/utils/request'
const _request = (url, method, data) => request({ url, method, data })

export default {
  add(data) {
    return _request('/api/DataSet/Add', 'post', data)
  },
  delete(data) {
    return _request('/api/DataSet/Delete', 'post', data)
  },
  update(data) {
    return _request('/api/DataSet/Update', 'post', data)
  },
  getChildrenById(data) {
    return _request('/api/DataSet/GetChildrenById', 'post', data)
  }
}